<template>
  <div>
    <p>
      新闻ID: {{ id }}
    </p>
    <p>
      新闻内容: {{ params.content || '--'}}
    </p>
  </div>
</template>

<script lang="ts" setup>
import { toRefs } from 'vue';
import { useRoute } from 'vue-router'

const route = useRoute()

let { params } = toRefs(route)

defineProps(['id'])

</script>

<style lang="scss" scoped></style>
